#ifndef _DATA_LOCK_H_
#define _DATA_LOCK_H_

#include "public_def.h"

#define TDataLock 			pthread_mutex_t
#define InitDataLock(lck)		pthread_mutex_init(&(lck), NULL)
#define LockDataLock(lck)		pthread_mutex_lock(&(lck))
#define UnLockDataLock(lck)	pthread_mutex_unlock(&(lck))

#endif
